package com.leadingsoft.pwxk.converter;

import org.springframework.stereotype.Component;

import com.leadingsoft.common.converter.AbstractConverter;
import com.leadingsoft.pwxk.dto.DrainNormDto;
import com.leadingsoft.pwxk.model.DrainNorm;

/**
 * @author: lipan 2018年5月15日
 * @description: ()
 * 
 */

@Component
public class DrainNormConverter extends AbstractConverter<DrainNorm, DrainNormDto> {

	@Override
	protected DrainNormDto toDtoActual(DrainNorm model) {
		DrainNormDto dto = new DrainNormDto();
		dto.setId(model.getId());
		dto.setDataid(model.getDataid());
		dto.setAskname(model.getAskname());
		dto.setDrainname(model.getDrainname());
		dto.setEmissioncon(model.getEmissioncon());
		dto.setEmissionname(model.getEmissionname());
		dto.setEmissionspeed(model.getEmissionspeed());
		dto.setOffername(model.getOffername());
		dto.setOthercontent(model.getOthercontent());
		dto.setWrwid(model.getWrwid());
		dto.setWrwname(model.getWrwname());
		dto.setXkdraincode(model.getXkdraincode());
		return dto;
	}

	public void copyProperties(DrainNorm model, DrainNormDto dto) {
		// model.setId(dto.getId());
		// model.setDataid(dto.getDataid());
	}

}
